home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / mac / DirectX SDK / DXSDK / include / dvoice.h < prev    next >
C/C++ Source or Header  |  2001-10-16  |  35KB  |  857 lines

  1. /*==========================================================================;
  2.  *
  3.  *  Copyright (C) 1999 Microsoft Corporation.  All Rights Reserved.
  4.  *
  5.  *  File:       dpvoice.h
  6.  *  Content:    DirectPlayVoice include file
  7.  ***************************************************************************/
  8.  
  9. #ifndef __DVOICE__
  10. #define __DVOICE__
  11.  
  12. #include <ole2.h>            // for DECLARE_INTERFACE and HRESULT
  13. #include <mmsystem.h>
  14. #include <mmreg.h>
  15. #include <msacm.h>
  16. #include "dsound.h"
  17.  
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22. /****************************************************************************
  23.  *
  24.  * DirectPlayVoice CLSIDs
  25.  *
  26.  ****************************************************************************/
  27.  
  28.  
  29. // {B9F3EB85-B781-4ac1-8D90-93A05EE37D7D}
  30. DEFINE_GUID(CLSID_DirectPlayVoiceClient, 
  31. 0xb9f3eb85, 0xb781, 0x4ac1, 0x8d, 0x90, 0x93, 0xa0, 0x5e, 0xe3, 0x7d, 0x7d);
  32.  
  33. // {D3F5B8E6-9B78-4a4c-94EA-CA2397B663D3}
  34. DEFINE_GUID(CLSID_DirectPlayVoiceServer, 
  35. 0xd3f5b8e6, 0x9b78, 0x4a4c, 0x94, 0xea, 0xca, 0x23, 0x97, 0xb6, 0x63, 0xd3);
  36.  
  37. // {0F0F094B-B01C-4091-A14D-DD0CD807711A}
  38. DEFINE_GUID(CLSID_DirectPlayVoiceTest, 
  39. 0xf0f094b, 0xb01c, 0x4091, 0xa1, 0x4d, 0xdd, 0xc, 0xd8, 0x7, 0x71, 0x1a);
  40.  
  41. /****************************************************************************
  42.  *
  43.  * DirectPlayVoice Interface IIDs
  44.  *
  45.  ****************************************************************************/
  46.  
  47.  
  48. // {1DFDC8EA-BCF7-41d6-B295-AB64B3B23306}
  49. DEFINE_GUID(IID_IDirectPlayVoiceClient, 
  50. 0x1dfdc8ea, 0xbcf7, 0x41d6, 0xb2, 0x95, 0xab, 0x64, 0xb3, 0xb2, 0x33, 0x6);
  51.  
  52. // {FAA1C173-0468-43b6-8A2A-EA8A4F2076C9}
  53. DEFINE_GUID(IID_IDirectPlayVoiceServer, 
  54. 0xfaa1c173, 0x468, 0x43b6, 0x8a, 0x2a, 0xea, 0x8a, 0x4f, 0x20, 0x76, 0xc9);
  55.  
  56. // {D26AF734-208B-41da-8224-E0CE79810BE1}
  57. DEFINE_GUID(IID_IDirectPlayVoiceTest,
  58. 0xd26af734, 0x208b, 0x41da, 0x82, 0x24, 0xe0, 0xce, 0x79, 0x81, 0xb, 0xe1);
  59.  
  60. /****************************************************************************
  61.  *
  62.  * DirectPlayVoice Compression Type GUIDs
  63.  *
  64.  ****************************************************************************/
  65.  
  66. // MS-ADPCM 32.8 kbit/s
  67. //
  68. // {699B52C1-A885-46a8-A308-97172419ADC7}
  69. DEFINE_GUID(DPVCTGUID_ADPCM,
  70. 0x699b52c1, 0xa885, 0x46a8, 0xa3, 0x8, 0x97, 0x17, 0x24, 0x19, 0xad, 0xc7);
  71.  
  72. // Microsoft GSM 6.10 13 kbit/s
  73. //
  74. // {24768C60-5A0D-11d3-9BE4-525400D985E7}
  75. DEFINE_GUID(DPVCTGUID_GSM,
  76. 0x24768c60, 0x5a0d, 0x11d3, 0x9b, 0xe4, 0x52, 0x54, 0x0, 0xd9, 0x85, 0xe7);
  77.  
  78. // MS-PCM 64 kbit/s
  79. // 
  80. // {8DE12FD4-7CB3-48ce-A7E8-9C47A22E8AC5}
  81. DEFINE_GUID(DPVCTGUID_NONE,
  82. 0x8de12fd4, 0x7cb3, 0x48ce, 0xa7, 0xe8, 0x9c, 0x47, 0xa2, 0x2e, 0x8a, 0xc5);
  83.  
  84. // Voxware SC03 3.2kbit/s
  85. //
  86. // {7D82A29B-2242-4f82-8F39-5D1153DF3E41}
  87. DEFINE_GUID(DPVCTGUID_SC03,
  88. 0x7d82a29b, 0x2242, 0x4f82, 0x8f, 0x39, 0x5d, 0x11, 0x53, 0xdf, 0x3e, 0x41);
  89.  
  90. // Voxware SC06 6.4kbit/s
  91. //
  92. // {53DEF900-7168-4633-B47F-D143916A13C7}
  93. DEFINE_GUID(DPVCTGUID_SC06,
  94. 0x53def900, 0x7168, 0x4633, 0xb4, 0x7f, 0xd1, 0x43, 0x91, 0x6a, 0x13, 0xc7);
  95.  
  96. // TrueSpeech(TM) 8.6 kbit/s
  97. //
  98. // {D7954361-5A0B-11d3-9BE4-525400D985E7}
  99. DEFINE_GUID(DPVCTGUID_TRUESPEECH,
  100. 0xd7954361, 0x5a0b, 0x11d3, 0x9b, 0xe4, 0x52, 0x54, 0x0, 0xd9, 0x85, 0xe7);
  101.  
  102. // Voxware VR12 1.4kbit/s
  103. //
  104. // {FE44A9FE-8ED4-48bf-9D66-1B1ADFF9FF6D}
  105. DEFINE_GUID(DPVCTGUID_VR12,
  106. 0xfe44a9fe, 0x8ed4, 0x48bf, 0x9d, 0x66, 0x1b, 0x1a, 0xdf, 0xf9, 0xff, 0x6d);
  107.  
  108. // Define the default compression type
  109. #define DPVCTGUID_DEFAULT    DPVCTGUID_SC03
  110.  
  111. /****************************************************************************
  112.  *
  113.  * DirectPlayVoice Interface Pointer definitions
  114.  *
  115.  ****************************************************************************/
  116.  
  117. typedef struct IDirectPlayVoiceClient FAR *LPDIRECTPLAYVOICECLIENT, *PDIRECTPLAYVOICECLIENT;
  118. typedef struct IDirectPlayVoiceServer FAR *LPDIRECTPLAYVOICESERVER, *PDIRECTPLAYVOICESERVER;
  119. typedef struct IDirectPlayVoiceTest FAR *LPDIRECTPLAYVOICETEST, *PDIRECTPLAYVOICETEST;
  120.  
  121. /****************************************************************************
  122.  *
  123.  * DirectPlayVoice Callback Functions
  124.  *
  125.  ****************************************************************************/
  126. typedef HRESULT (FAR PASCAL *PDVMESSAGEHANDLER)(
  127.     PVOID   pvUserContext,
  128.     DWORD   dwMessageType,
  129.     LPVOID  lpMessage
  130. );
  131.  
  132. typedef PDVMESSAGEHANDLER LPDVMESSAGEHANDLER;
  133.  
  134. /****************************************************************************
  135.  *
  136.  * DirectPlayVoice Datatypes (Non-Structure / Non-Message)
  137.  *
  138.  ****************************************************************************/
  139.  
  140. typedef DWORD DVID, *LPDVID, *PDVID;
  141.  
  142. /****************************************************************************
  143.  *
  144.  * DirectPlayVoice Message Types
  145.  *
  146.  ****************************************************************************/
  147.  
  148. #define DVMSGID_BASE                        0x0000
  149.  
  150. #define DVMSGID_MINBASE                     (DVMSGID_CREATEVOICEPLAYER)
  151. #define DVMSGID_CREATEVOICEPLAYER           (DVMSGID_BASE+0x0001)
  152. #define DVMSGID_DELETEVOICEPLAYER           (DVMSGID_BASE+0x0002)
  153. #define DVMSGID_SESSIONLOST                 (DVMSGID_BASE+0x0003)
  154. #define DVMSGID_PLAYERVOICESTART            (DVMSGID_BASE+0x0004)
  155. #define DVMSGID_PLAYERVOICESTOP             (DVMSGID_BASE+0x0005)
  156. #define DVMSGID_RECORDSTART                 (DVMSGID_BASE+0x0006)
  157. #define DVMSGID_RECORDSTOP                  (DVMSGID_BASE+0x0007)
  158. #define DVMSGID_CONNECTRESULT               (DVMSGID_BASE+0x0008)
  159. #define DVMSGID_DISCONNECTRESULT            (DVMSGID_BASE+0x0009)
  160. #define DVMSGID_INPUTLEVEL                  (DVMSGID_BASE+0x000A)
  161. #define DVMSGID_OUTPUTLEVEL                 (DVMSGID_BASE+0x000B)
  162. #define DVMSGID_HOSTMIGRATED                (DVMSGID_BASE+0x000C)
  163. #define DVMSGID_SETTARGETS                  (DVMSGID_BASE+0x000D)
  164. #define DVMSGID_PLAYEROUTPUTLEVEL           (DVMSGID_BASE+0x000E)
  165. #define DVMSGID_LOSTFOCUS                   (DVMSGID_BASE+0x0010)
  166. #define DVMSGID_GAINFOCUS                   (DVMSGID_BASE+0x0011)
  167. #define DVMSGID_LOCALHOSTSETUP                (DVMSGID_BASE+0x0012)
  168. #define DVMSGID_MAXBASE                     (DVMSGID_LOCALHOSTSETUP)
  169.  
  170. /****************************************************************************
  171.  *
  172.  * DirectPlayVoice Constants
  173.  *
  174.  ****************************************************************************/
  175.  
  176. //
  177. // Buffer Aggresiveness Value Ranges
  178. //
  179. #define DVBUFFERAGGRESSIVENESS_MIN          0x00000001
  180. #define DVBUFFERAGGRESSIVENESS_MAX          0x00000064
  181. #define DVBUFFERAGGRESSIVENESS_DEFAULT      0x00000000
  182.  
  183. // 
  184. // Buffer Quality Value Ranges
  185. //
  186. #define DVBUFFERQUALITY_MIN                 0x00000001
  187. #define DVBUFFERQUALITY_MAX                 0x00000064
  188. #define DVBUFFERQUALITY_DEFAULT             0x00000000
  189.  
  190. #define DVID_SYS                0
  191.  
  192. //
  193. // Used to identify the session host in client/server
  194. //
  195. #define DVID_SERVERPLAYER       1
  196.  
  197. //
  198. // Used to target all players
  199. //
  200. #define DVID_ALLPLAYERS         0
  201.  
  202. //
  203. // Used to identify the main buffer
  204. //
  205. #define DVID_REMAINING          0xFFFFFFFF
  206.  
  207. // 
  208. // Input level range
  209. //
  210. #define DVINPUTLEVEL_MIN                    0x00000000
  211. #define DVINPUTLEVEL_MAX                    0x00000063    // 99 decimal
  212.  
  213. #define DVNOTIFYPERIOD_MINPERIOD            20
  214.  
  215.  
  216. #define DVPLAYBACKVOLUME_DEFAULT            DSBVOLUME_MAX
  217.  
  218. #define DVRECORDVOLUME_LAST                 0x00000001
  219.  
  220.  
  221. //
  222. // Use the default value
  223. //
  224. #define DVTHRESHOLD_DEFAULT               0xFFFFFFFF
  225.  
  226. //
  227. // Threshold Ranges
  228. //
  229. #define DVTHRESHOLD_MIN                   0x00000000
  230. #define DVTHRESHOLD_MAX                   0x00000063    // 99 decimal
  231.  
  232. //
  233. // Threshold field is not used 
  234. //
  235. #define DVTHRESHOLD_UNUSED                0xFFFFFFFE
  236.  
  237. //
  238. // Session Types
  239. //
  240. #define DVSESSIONTYPE_PEER                  0x00000001
  241. #define DVSESSIONTYPE_MIXING                0x00000002
  242. #define DVSESSIONTYPE_FORWARDING            0x00000003
  243. #define DVSESSIONTYPE_ECHO                  0x00000004
  244.  
  245. /****************************************************************************
  246.  *
  247.  * DirectPlayVoice Flags
  248.  *
  249.  ****************************************************************************/
  250.  
  251.  
  252. // 
  253. // Enable automatic adjustment of the recording volume
  254. //
  255. #define DVCLIENTCONFIG_AUTORECORDVOLUME     0x00000008
  256.  
  257. //
  258. // Enable automatic voice activation
  259. //
  260. #define DVCLIENTCONFIG_AUTOVOICEACTIVATED   0x00000020
  261.  
  262. // 
  263. // Enable echo suppression
  264. //
  265. #define DVCLIENTCONFIG_ECHOSUPPRESSION      0x08000000
  266.  
  267. // 
  268. // Voice Activation manual mode
  269. //
  270. #define DVCLIENTCONFIG_MANUALVOICEACTIVATED 0x00000004
  271.  
  272. // 
  273. // Only playback voices that have buffers created for them
  274. //
  275. #define DVCLIENTCONFIG_MUTEGLOBAL           0x00000010
  276.  
  277. // 
  278. // Mute the playback
  279. //
  280. #define DVCLIENTCONFIG_PLAYBACKMUTE         0x00000002
  281.  
  282. //
  283. // Mute the recording 
  284. //
  285. #define DVCLIENTCONFIG_RECORDMUTE           0x00000001
  286.  
  287. // 
  288. // Complete the operation before returning
  289. //
  290. #define DVFLAGS_SYNC                        0x00000001
  291.  
  292. // 
  293. // Just check to see if wizard has been run, and if so what it's results were
  294. //
  295. #define DVFLAGS_QUERYONLY                   0x00000002
  296.  
  297. //
  298. // Shutdown the voice session without migrating the host
  299. //
  300. #define DVFLAGS_NOHOSTMIGRATE               0x00000008
  301.  
  302. // 
  303. // Allow the back button to be enabled in the wizard
  304. //
  305. #define DVFLAGS_ALLOWBACK                   0x00000010
  306.  
  307. //
  308. // Disable host migration in the voice session
  309. //
  310. #define DVSESSION_NOHOSTMIGRATION           0x00000001
  311.  
  312. // 
  313. // Server controlled targetting
  314. //
  315. #define DVSESSION_SERVERCONTROLTARGET       0x00000002
  316.  
  317. //
  318. // Use DirectSound Normal Mode instead of priority 
  319. //
  320. #define DVSOUNDCONFIG_NORMALMODE            0x00000001
  321.  
  322. //
  323. // Automatically select the microphone
  324. //
  325. #define DVSOUNDCONFIG_AUTOSELECT            0x00000002
  326.  
  327. // 
  328. // Run in half duplex mode
  329. //
  330. #define DVSOUNDCONFIG_HALFDUPLEX            0x00000004
  331.  
  332. // 
  333. // No volume controls are available for the recording device
  334. //
  335. #define DVSOUNDCONFIG_NORECVOLAVAILABLE     0x00000010
  336.  
  337. // 
  338. // Disable capture sharing
  339. //
  340. #define DVSOUNDCONFIG_NOFOCUS               0x20000000
  341.  
  342. // 
  343. // Set system conversion quality to high
  344. //
  345. #define DVSOUNDCONFIG_SETCONVERSIONQUALITY    0x00000008
  346.  
  347. //
  348. // Enable strict focus mode
  349. // 
  350. #define DVSOUNDCONFIG_STRICTFOCUS           0x40000000
  351.  
  352. //
  353. // Player is in half duplex mode
  354. //
  355. #define DVPLAYERCAPS_HALFDUPLEX             0x00000001
  356.  
  357. // 
  358. // Specifies that player is the local player
  359. //
  360. #define DVPLAYERCAPS_LOCAL                  0x00000002
  361.  
  362. /****************************************************************************
  363.  *
  364.  * DirectPlayVoice Structures (Non-Message)
  365.  *
  366.  ****************************************************************************/
  367.  
  368.  
  369. //
  370. // DirectPlayVoice Caps
  371. // (GetCaps / SetCaps)
  372. //
  373. typedef struct
  374. {
  375.     DWORD   dwSize;                 // Size of this structure
  376.     DWORD   dwFlags;                // Caps flags
  377. } DVCAPS, *LPDVCAPS, *PDVCAPS;
  378.  
  379. //
  380. // DirectPlayVoice Client Configuration
  381. // (Connect / GetClientConfig)
  382. //
  383. typedef struct
  384. {
  385.     DWORD   dwSize;                 // Size of this structure
  386.     DWORD   dwFlags;                // Flags for client config (DVCLIENTCONFIG_...)
  387.     LONG    lRecordVolume;          // Recording volume 
  388.     LONG    lPlaybackVolume;        // Playback volume
  389.     DWORD   dwThreshold;          // Voice Activation Threshold
  390.     DWORD   dwBufferQuality;        // Buffer quality
  391.     DWORD   dwBufferAggressiveness; // Buffer aggressiveness
  392.     DWORD   dwNotifyPeriod;         // Period of notification messages (ms)
  393. } DVCLIENTCONFIG, *LPDVCLIENTCONFIG, *PDVCLIENTCONFIG;
  394.  
  395. //
  396. // DirectPlayVoice Compression Type Information
  397. // (GetCompressionTypes)
  398. //
  399. typedef struct
  400. {
  401.     DWORD   dwSize;                 // Size of this structure
  402.     GUID    guidType;               // GUID that identifies this compression type
  403.     LPWSTR  lpszName;               // String name of this compression type
  404.     LPWSTR  lpszDescription;        // Description for this compression type
  405.     DWORD   dwFlags;                // Flags for this compression type
  406.     DWORD   dwMaxBitsPerSecond;        // Maximum # of bit/s this compression type uses
  407. } DVCOMPRESSIONINFO, *LPDVCOMPRESSIONINFO, *PDVCOMPRESSIONINFO;
  408.  
  409. //
  410. // DirectPlayVoice Session Description
  411. // (Host / GetSessionDesc)
  412. //
  413. typedef struct
  414. {
  415.     DWORD   dwSize;                 // Size of this structure
  416.     DWORD   dwFlags;                // Session flags (DVSESSION_...)
  417.     DWORD   dwSessionType;          // Session type (DVSESSIONTYPE_...)
  418.     GUID    guidCT;                 // Compression Type to use
  419.     DWORD   dwBufferQuality;        // Buffer quality
  420.     DWORD   dwBufferAggressiveness; // Buffer aggresiveness
  421. } DVSESSIONDESC, *LPDVSESSIONDESC, *PDVSESSIONDESC;
  422.  
  423. // 
  424. // DirectPlayVoice Client Sound Device Configuration
  425. // (Connect / GetSoundDeviceConfig)
  426. //
  427. typedef struct
  428. {
  429.     DWORD                   dwSize;                 // Size of this structure
  430.     DWORD                   dwFlags;                // Flags for sound config (DVSOUNDCONFIG_...)
  431.     GUID                    guidPlaybackDevice;     // GUID of the playback device to use
  432.     LPDIRECTSOUND           lpdsPlaybackDevice;     // DirectSound Object to use (optional)
  433.     GUID                    guidCaptureDevice;      // GUID of the capture device to use
  434.     LPDIRECTSOUNDCAPTURE    lpdsCaptureDevice;      // DirectSoundCapture Object to use (optional)
  435.     HWND                    hwndAppWindow;          // HWND of your application's top-level window
  436.     LPDIRECTSOUNDBUFFER     lpdsMainBuffer;         // DirectSoundBuffer to use for playback (optional)
  437.     DWORD                   dwMainBufferFlags;      // Flags to pass to Play() on the main buffer
  438.     DWORD                   dwMainBufferPriority;   // Priority to set when calling Play() on the main buffer
  439. } DVSOUNDDEVICECONFIG, *LPDVSOUNDDEVICECONFIG, *PDVSOUNDDEVICECONFIG;
  440.  
  441. /****************************************************************************
  442.  *
  443.  * DirectPlayVoice message handler call back structures
  444.  *
  445.  ****************************************************************************/
  446.  
  447. //
  448. // Result of the Connect() call.  (If it wasn't called Async)
  449. // (DVMSGID_CONNECTRESULT)
  450. //
  451. typedef struct
  452. {
  453.     DWORD   dwSize;                         // Size of this structure
  454.     HRESULT hrResult;                       // Result of the Connect() call
  455. } DVMSG_CONNECTRESULT, *LPDVMSG_CONNECTRESULT, *PDVMSG_CONNECTRESULT;
  456.  
  457. //
  458. // A new player has entered the voice session
  459. // (DVMSGID_CREATEVOICEPLAYER)
  460. // 
  461. typedef struct
  462. {
  463.     DWORD   dwSize;                         // Size of this structure
  464.     DVID    dvidPlayer;                     // DVID of the player who joined
  465.     DWORD   dwFlags;                        // Player flags (DVPLAYERCAPS_...)
  466.     PVOID    pvPlayerContext;                // Context value for this player (user set)
  467. } DVMSG_CREATEVOICEPLAYER, *LPDVMSG_CREATEVOICEPLAYER, *PDVMSG_CREATEVOICEPLAYER;
  468.  
  469. //
  470. // A player has left the voice session
  471. // (DVMSGID_DELETEVOICEPLAYER)
  472. //
  473. typedef struct
  474. {
  475.     DWORD   dwSize;                         // Size of this structure
  476.     DVID    dvidPlayer;                     // DVID of the player who left
  477.     PVOID    pvPlayerContext;                // Context value for the player
  478. } DVMSG_DELETEVOICEPLAYER, *LPDVMSG_DELETEVOICEPLAYER, *PDVMSG_DELETEVOICEPLAYER;
  479.  
  480. //
  481. // Result of the Disconnect() call.  (If it wasn't called Async)
  482. // (DVMSGID_DISCONNECTRESULT)
  483. //
  484. typedef struct
  485. {
  486.     DWORD   dwSize;                         // Size of this structure
  487.     HRESULT hrResult;                       // Result of the Disconnect() call
  488. } DVMSG_DISCONNECTRESULT, *LPDVMSG_DISCONNECTRESULT, *PDVMSG_DISCONNECTRESULT;
  489.  
  490. // 
  491. // The voice session host has migrated.
  492. // (DVMSGID_HOSTMIGRATED) 
  493. //
  494. typedef struct
  495. {
  496.     DWORD                   dwSize;         // Size of this structure
  497.     DVID                    dvidNewHostID;  // DVID of the player who is now the host
  498.     LPDIRECTPLAYVOICESERVER pdvServerInterface;
  499.                                             // Pointer to the new host object (if local player is now host)
  500. } DVMSG_HOSTMIGRATED, *LPDVMSG_HOSTMIGRATED, *PDVMSG_HOSTMIGRATED;
  501.  
  502. //
  503. // The current input level / recording volume on the local machine
  504. // (DVMSGID_INPUTLEVEL)
  505. //
  506. typedef struct
  507. {
  508.     DWORD   dwSize;                         // Size of this structure
  509.     DWORD   dwPeakLevel;                    // Current peak level of the audio
  510.     LONG    lRecordVolume;                  // Current recording volume
  511.     PVOID    pvLocalPlayerContext;           // Context value for the local player
  512. } DVMSG_INPUTLEVEL, *LPDVMSG_INPUTLEVEL, *PDVMSG_INPUTLEVEL;
  513.  
  514. //
  515. // The local client is about to become the new host
  516. // (DVMSGID_LOCALHOSTSETUP)
  517. //
  518. typedef struct
  519. {
  520.     DWORD                dwSize;             // Size of this structure
  521.     PVOID                pvContext;            // Context value to be passed to Initialize() of new host object
  522.     PDVMESSAGEHANDLER    pMessageHandler;    // Message handler to be used by new host object
  523. } DVMSG_LOCALHOSTSETUP, *LPDVMSG_LOCALHOSTSETUP, *PDVMSG_LOCALHOSTSETUP;
  524.  
  525. //
  526. // The current output level for the combined output of all incoming streams.
  527. // (DVMSGID_OUTPUTLEVEL)
  528. //
  529. typedef struct
  530. {
  531.     DWORD   dwSize;                         // Size of this structure
  532.     DWORD   dwPeakLevel;                    // Current peak level of the output
  533.     LONG    lOutputVolume;                  // Current playback volume
  534.     PVOID    pvLocalPlayerContext;           // Context value for the local player
  535. } DVMSG_OUTPUTLEVEL, *LPDVMSG_OUTPUTLEVEL, *PDVMSG_OUTPUTLEVEL;
  536.  
  537. //
  538. // The current peak level of an individual player's incoming audio stream as it is
  539. // being played back.
  540. // (DVMSGID_PLAYEROUTPUTLEVEL)
  541. //
  542. typedef struct
  543. {
  544.     DWORD   dwSize;                         // Size of this structure
  545.     DVID    dvidSourcePlayerID;                   // DVID of the player
  546.     DWORD   dwPeakLevel;                    // Peak level of the player's stream
  547.     PVOID    pvPlayerContext;                // Context value for the player
  548. } DVMSG_PLAYEROUTPUTLEVEL, *LPDVMSG_PLAYEROUTPUTLEVEL, *PDVMSG_PLAYEROUTPUTLEVEL;
  549.  
  550. // 
  551. // An audio stream from the specified player has started playing back on the local client.
  552. // (DVMSGID_PLAYERVOICESTART).
  553. //
  554. typedef struct
  555. {
  556.     DWORD   dwSize;                         // Size of this structure
  557.     DVID    dvidSourcePlayerID;             // DVID of the Player 
  558.     PVOID    pvPlayerContext;                // Context value for this player
  559. } DVMSG_PLAYERVOICESTART, *LPDVMSG_PLAYERVOICESTART, *PDVMSG_PLAYERVOICESTART;
  560.  
  561. //
  562. // The audio stream from the specified player has stopped playing back on the local client.
  563. // (DVMSGID_PLAYERVOICESTOP)
  564. //
  565. typedef struct
  566. {
  567.     DWORD   dwSize;                         // Size of this structure
  568.     DVID    dvidSourcePlayerID;             // DVID of the player
  569.     PVOID    pvPlayerContext;                // Context value for this player
  570. } DVMSG_PLAYERVOICESTOP, *LPDVMSG_PLAYERVOICESTOP, *PDVMSG_PLAYERVOICESTOP;
  571.  
  572. // 
  573. // Transmission has started on the local machine
  574. // (DVMSGID_RECORDSTART)
  575. //
  576. typedef struct
  577. {
  578.     DWORD   dwSize;                         // Size of this structure
  579.     DWORD   dwPeakLevel;                    // Peak level that caused transmission to start
  580.     PVOID    pvLocalPlayerContext;           // Context value for the local player
  581. } DVMSG_RECORDSTART, *LPDVMSG_RECORDSTART, *PDVMSG_RECORDSTART;
  582.  
  583. // 
  584. // Transmission has stopped on the local machine
  585. // (DVMSGID_RECORDSTOP)
  586. // 
  587. typedef struct
  588. {
  589.     DWORD   dwSize;                         // Size of this structure
  590.     DWORD   dwPeakLevel;                    // Peak level that caused transmission to stop
  591.     PVOID    pvLocalPlayerContext;           // Context value for the local player
  592. } DVMSG_RECORDSTOP, *LPDVMSG_RECORDSTOP, *PDVMSG_RECORDSTOP;
  593.  
  594. // 
  595. // The voice session has been lost
  596. // (DVMSGID_SESSIONLOST)
  597. //
  598. typedef struct
  599. {
  600.     DWORD   dwSize;                         // Size of this structure
  601.     HRESULT hrResult;                        // Reason the session was disconnected
  602. } DVMSG_SESSIONLOST, *LPDVMSG_SESSIONLOST, *PDVMSG_SESSIONLOST;
  603.  
  604. //
  605. // The target list has been updated for the local client
  606. // (DVMSGID_SETTARGETS)
  607. //
  608. typedef struct
  609. {
  610.     DWORD   dwSize;                         // Size of this structure
  611.     DWORD   dwNumTargets;                   // # of targets 
  612.     PDVID   pdvidTargets;                   // An array of DVIDs specifying the current targets
  613. } DVMSG_SETTARGETS, *LPDVMSG_SETTARGETS, *PDVMSG_SETTARGETS;
  614.  
  615.  
  616. /****************************************************************************
  617.  *
  618.  * DirectPlayVoice Functions
  619.  *
  620.  ****************************************************************************/
  621.  
  622. /*
  623.  * 
  624.  * This function is no longer supported.  It is recommended that CoCreateInstance be used to create 
  625.  * DirectPlay voice objects.  
  626.  *
  627.  * extern HRESULT WINAPI DirectPlayVoiceCreate( const GUID * pcIID, void **ppvInterface, IUnknown *pUnknown); 
  628.  *
  629.  */
  630.  
  631. /****************************************************************************
  632.  *
  633.  * DirectPlay8 Application Interfaces
  634.  *
  635.  ****************************************************************************/
  636.  
  637. #undef INTERFACE
  638. #define INTERFACE IDirectPlayVoiceClient
  639. DECLARE_INTERFACE_( IDirectPlayVoiceClient, IUnknown )
  640. {
  641.     /*** IUnknown methods ***/
  642.     STDMETHOD(QueryInterface)(THIS_ REFIID riid, PVOID *ppvObj) PURE;
  643.     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  644.     STDMETHOD_(ULONG,Release)(THIS) PURE;
  645.     /*** IDirectPlayVoiceClient methods ***/
  646.     STDMETHOD_(HRESULT, Initialize)   (THIS_ LPUNKNOWN, PDVMESSAGEHANDLER, PVOID, PDWORD, DWORD ) PURE;
  647.     STDMETHOD_(HRESULT, Connect)      (THIS_ PDVSOUNDDEVICECONFIG, PDVCLIENTCONFIG, DWORD ) PURE;
  648.     STDMETHOD_(HRESULT, Disconnect)   (THIS_ DWORD ) PURE;
  649.     STDMETHOD_(HRESULT, GetSessionDesc)(THIS_ PDVSESSIONDESC ) PURE;
  650.     STDMETHOD_(HRESULT, GetClientConfig)(THIS_ PDVCLIENTCONFIG ) PURE;
  651.     STDMETHOD_(HRESULT, SetClientConfig)(THIS_ PDVCLIENTCONFIG ) PURE;
  652.     STDMETHOD_(HRESULT, GetCaps)         (THIS_ PDVCAPS ) PURE;
  653.     STDMETHOD_(HRESULT, GetCompressionTypes)( THIS_ PVOID, PDWORD, PDWORD, DWORD ) PURE;
  654.     STDMETHOD_(HRESULT, SetTransmitTargets)( THIS_ PDVID, DWORD, DWORD ) PURE;
  655.     STDMETHOD_(HRESULT, GetTransmitTargets)( THIS_ PDVID, PDWORD, DWORD ) PURE;
  656.     STDMETHOD_(HRESULT, Create3DSoundBuffer)( THIS_ DVID, LPDIRECTSOUNDBUFFER, DWORD, DWORD, LPDIRECTSOUND3DBUFFER * ) PURE;
  657.     STDMETHOD_(HRESULT, Delete3DSoundBuffer)( THIS_ DVID, LPDIRECTSOUND3DBUFFER * ) PURE;
  658.     STDMETHOD_(HRESULT, SetNotifyMask)( THIS_ PDWORD, DWORD ) PURE;
  659.     STDMETHOD_(HRESULT, GetSoundDeviceConfig)( THIS_ PDVSOUNDDEVICECONFIG, PDWORD ) PURE;
  660. };
  661.  
  662.  
  663. #undef INTERFACE
  664. #define INTERFACE IDirectPlayVoiceServer
  665. DECLARE_INTERFACE_( IDirectPlayVoiceServer, IUnknown )
  666. {
  667.     /*** IUnknown methods ***/
  668.     STDMETHOD(QueryInterface)       (THIS_ REFIID riid, LPVOID * ppvObj) PURE;
  669.     STDMETHOD_(ULONG,AddRef)        (THIS) PURE;
  670.     STDMETHOD_(ULONG,Release)       (THIS) PURE;
  671.     /*** IDirectPlayVoiceServer methods ***/
  672.     STDMETHOD_(HRESULT, Initialize)   (THIS_ LPUNKNOWN, PDVMESSAGEHANDLER, PVOID, LPDWORD, DWORD ) PURE;
  673.     STDMETHOD_(HRESULT, StartSession)  (THIS_ PDVSESSIONDESC, DWORD ) PURE;
  674.     STDMETHOD_(HRESULT, StopSession)   (THIS_ DWORD ) PURE;
  675.     STDMETHOD_(HRESULT, GetSessionDesc)(THIS_ PDVSESSIONDESC ) PURE;
  676.     STDMETHOD_(HRESULT, SetSessionDesc)(THIS_ PDVSESSIONDESC ) PURE;
  677.     STDMETHOD_(HRESULT, GetCaps)         (THIS_ PDVCAPS ) PURE;
  678.     STDMETHOD_(HRESULT, GetCompressionTypes)( THIS_ PVOID, PDWORD, PDWORD, DWORD ) PURE;
  679.     STDMETHOD_(HRESULT, SetTransmitTargets)( THIS_ DVID, PDVID, DWORD, DWORD ) PURE;
  680.     STDMETHOD_(HRESULT, GetTransmitTargets)( THIS_ DVID, PDVID, PDWORD, DWORD ) PURE;
  681.     STDMETHOD_(HRESULT, SetNotifyMask)( THIS_ PDWORD, DWORD ) PURE;
  682. };
  683.  
  684. #undef INTERFACE
  685. #define INTERFACE IDirectPlayVoiceTest
  686. DECLARE_INTERFACE_( IDirectPlayVoiceTest, IUnknown )
  687. {
  688.     /*** IUnknown methods ***/
  689.     STDMETHOD(QueryInterface)       (THIS_ REFIID riid, PVOID * ppvObj) PURE;
  690.     STDMETHOD_(ULONG,AddRef)        (THIS) PURE;
  691.     STDMETHOD_(ULONG,Release)       (THIS) PURE;
  692.     /*** IDirectPlayVoiceTest methods ***/
  693.     STDMETHOD_(HRESULT, CheckAudioSetup) (THIS_ const GUID *,  const GUID * , HWND, DWORD ) PURE;
  694. };
  695.  
  696. #if !defined(__cplusplus) || defined(CINTERFACE)
  697.  
  698. #define IDirectPlayVoiceClient_QueryInterface(p,a,b)        (p)->lpVtbl->QueryInterface(p,a,b)
  699. #define IDirectPlayVoiceClient_AddRef(p)                    (p)->lpVtbl->AddRef(p)
  700. #define IDirectPlayVoiceClient_Release(p)                   (p)->lpVtbl->Release(p)
  701.  
  702. #define IDirectPlayVoiceClient_Initialize(p,a,b,c,d,e)      (p)->lpVtbl->Initialize(p,a,b,c,d,e)
  703. #define IDirectPlayVoiceClient_Connect(p,a,b,c)             (p)->lpVtbl->Connect(p,a,b,c)
  704. #define IDirectPlayVoiceClient_Disconnect(p,a)              (p)->lpVtbl->Disconnect(p,a)
  705. #define IDirectPlayVoiceClient_GetSessionDesc(p,a)          (p)->lpVtbl->GetSessionDesc(p,a)
  706. #define IDirectPlayVoiceClient_GetClientConfig(p,a)         (p)->lpVtbl->GetClientConfig(p,a)
  707. #define IDirectPlayVoiceClient_SetClientConfig(p,a)         (p)->lpVtbl->SetClientConfig(p,a)
  708. #define IDirectPlayVoiceClient_GetCaps(p,a)                 (p)->lpVtbl->GetCaps(p,a)
  709. #define IDirectPlayVoiceClient_GetCompressionTypes(p,a,b,c,d) (p)->lpVtbl->GetCompressionTypes(p,a,b,c,d)
  710. #define IDirectPlayVoiceClient_SetTransmitTargets(p,a,b,c)  (p)->lpVtbl->SetTransmitTargets(p,a,b,c)
  711. #define IDirectPlayVoiceClient_GetTransmitTargets(p,a,b,c)  (p)->lpVtbl->GetTransmitTargets(p,a,b,c)
  712. #define IDirectPlayVoiceClient_Create3DSoundBuffer(p,a,b,c,d,e)   (p)->lpVtbl->Create3DSoundBuffer(p,a,b,c,d,e)
  713. #define IDirectPlayVoiceClient_Delete3DSoundBuffer(p,a,b)   (p)->lpVtbl->Delete3DSoundBuffer(p,a,b)
  714. #define IDirectPlayVoiceClient_SetNotifyMask(p,a,b)         (p)->lpVtbl->SetNotifyMask(p,a,b)
  715. #define IDirectPlayVoiceClient_GetSoundDeviceConfig(p,a,b)  (p)->lpVtbl->GetSoundDeviceConfig(p,a,b)
  716.  
  717. #define IDirectPlayVoiceServer_QueryInterface(p,a,b)        (p)->lpVtbl->QueryInterface(p,a,b)
  718. #define IDirectPlayVoiceServer_AddRef(p)                    (p)->lpVtbl->AddRef(p)
  719. #define IDirectPlayVoiceServer_Release(p)                   (p)->lpVtbl->Release(p)
  720.  
  721. #define IDirectPlayVoiceServer_Initialize(p,a,b,c,d,e)      (p)->lpVtbl->Initialize(p,a,b,c,d,e)
  722. #define IDirectPlayVoiceServer_StartSession(p,a,b)          (p)->lpVtbl->StartSession(p,a,b)
  723. #define IDirectPlayVoiceServer_StopSession(p,a)             (p)->lpVtbl->StopSession(p,a)
  724. #define IDirectPlayVoiceServer_GetSessionDesc(p,a)          (p)->lpVtbl->GetSessionDesc(p,a)
  725. #define IDirectPlayVoiceServer_SetSessionDesc(p,a)          (p)->lpVtbl->SetSessionDesc(p,a)
  726. #define IDirectPlayVoiceServer_GetCaps(p,a)                 (p)->lpVtbl->GetCaps(p,a)
  727. #define IDirectPlayVoiceServer_GetCompressionTypes(p,a,b,c,d) (p)->lpVtbl->GetCompressionTypes(p,a,b,c,d)
  728. #define IDirectPlayVoiceServer_SetTransmitTargets(p,a,b,c,d)    (p)->lpVtbl->SetTransmitTargets(p,a,b,c,d)
  729. #define IDirectPlayVoiceServer_GetTransmitTargets(p,a,b,c,d)    (p)->lpVtbl->GetTransmitTargets(p,a,b,c,d)
  730. #define IDirectPlayVoiceServer_SetNotifyMask(p,a,b)         (p)->lpVtbl->SetNotifyMask(p,a,b)
  731. #define IDirectPlayVoiceTest_QueryInterface(p,a,b)          (p)->lpVtbl->QueryInterface(p,a,b)
  732. #define IDirectPlayVoiceTest_AddRef(p)                      (p)->lpVtbl->AddRef(p)
  733. #define IDirectPlayVoiceTest_Release(p)                        (p)->lpVtbl->Release(p)
  734. #define IDirectPlayVoiceTest_CheckAudioSetup(p,a,b,c,d)     (p)->lpVtbl->CheckAudioSetup(p,a,b,c,d)
  735.  
  736.  
  737. #else /* C++ */
  738.  
  739. #define IDirectPlayVoiceClient_QueryInterface(p,a,b)        (p)->QueryInterface(a,b)
  740. #define IDirectPlayVoiceClient_AddRef(p)                    (p)->AddRef()
  741. #define IDirectPlayVoiceClient_Release(p)                   (p)->Release()
  742.  
  743. #define IDirectPlayVoiceClient_Initialize(p,a,b,c,d,e)      (p)->Initialize(a,b,c,d,e)
  744. #define IDirectPlayVoiceClient_Connect(p,a,b,c)             (p)->Connect(a,b,c)
  745. #define IDirectPlayVoiceClient_Disconnect(p,a)              (p)->Disconnect(a)
  746. #define IDirectPlayVoiceClient_GetSessionDesc(p,a)          (p)->GetSessionDesc(a)
  747. #define IDirectPlayVoiceClient_GetClientConfig(p,a)         (p)->GetClientConfig(a)
  748. #define IDirectPlayVoiceClient_SetClientConfig(p,a)         (p)->SetClientConfig(a)
  749. #define IDirectPlayVoiceClient_GetCaps(p,a)                 (p)->GetCaps(a)
  750. #define IDirectPlayVoiceClient_GetCompressionTypes(p,a,b,c,d) (p)->GetCompressionTypes(a,b,c,d)
  751. #define IDirectPlayVoiceClient_SetTransmitTargets(p,a,b,c)  (p)->SetTransmitTargets(a,b,c)
  752. #define IDirectPlayVoiceClient_GetTransmitTargets(p,a,b,c)  (p)->GetTransmitTargets(a,b,c)
  753. #define IDirectPlayVoiceClient_Create3DSoundBuffer(p,a,b,c,d,e)   (p)->Create3DSoundBuffer(a,b,c,d,e)
  754. #define IDirectPlayVoiceClient_Delete3DSoundBuffer(p,a,b)   (p)->Delete3DSoundBuffer(a,b)
  755. #define IDirectPlayVoiceClient_SetNotifyMask(p,a,b)         (p)->SetNotifyMask(a,b)
  756. #define IDirectPlayVoiceClient_GetSoundDeviceConfig(p,a,b)    (p)->GetSoundDeviceConfig(a,b)
  757.  
  758. #define IDirectPlayVoiceServer_QueryInterface(p,a,b)        (p)->QueryInterface(a,b)
  759. #define IDirectPlayVoiceServer_AddRef(p)                    (p)->AddRef()
  760. #define IDirectPlayVoiceServer_Release(p)                   (p)->Release()
  761.  
  762. #define IDirectPlayVoiceServer_Initialize(p,a,b,c,d,e)      (p)->Initialize(a,b,c,d,e)
  763. #define IDirectPlayVoiceServer_StartSession(p,a,b)          (p)->StartSession(a,b)
  764. #define IDirectPlayVoiceServer_StopSession(p,a)             (p)->StopSession(a)
  765. #define IDirectPlayVoiceServer_GetSessionDesc(p,a)            (p)->GetSessionDesc(a)
  766. #define IDirectPlayVoiceServer_SetSessionDesc(p,a)            (p)->SetSessionDesc(a)
  767. #define IDirectPlayVoiceServer_GetCaps(p,a)                 (p)->GetCaps(a)
  768. #define IDirectPlayVoiceServer_GetCompressionTypes(p,a,b,c,d) (p)->GetCompressionTypes(a,b,c,d)
  769. #define IDirectPlayVoiceServer_SetTransmitTargets(p,a,b,c,d) (p)->SetTransmitTargets(a,b,c,d)
  770. #define IDirectPlayVoiceServer_GetTransmitTargets(p,a,b,c,d) (p)->GetTransmitTargets(a,b,c,d)
  771. #define IDirectPlayVoiceServer_SetNotifyMask(p,a,b)         (p)->SetNotifyMask(a,b)
  772.  
  773. #define IDirectPlayVoiceTest_QueryInterface(p,a,b)          (p)->QueryInterface(a,b)
  774. #define IDirectPlayVoiceTest_AddRef(p)                      (p)->AddRef()
  775. #define IDirectPlayVoiceTest_Release(p)                     (p)->Release()
  776. #define IDirectPlayVoiceTest_CheckAudioSetup(p,a,b,c,d)     (p)->CheckAudioSetup(a,b,c,d)
  777.  
  778.  
  779. #endif
  780.  
  781.  
  782. /****************************************************************************
  783.  *
  784.  * DIRECTPLAYVOICE ERRORS
  785.  *
  786.  * Errors are represented by negative values and cannot be combined.
  787.  *
  788.  ****************************************************************************/
  789.  
  790. #define _FACDPV  0x15
  791. #define MAKE_DVHRESULT( code )          MAKE_HRESULT( 1, _FACDPV, code )
  792.  
  793. #define DV_OK                           S_OK
  794. #define DV_FULLDUPLEX                   MAKE_HRESULT( 0, _FACDPV,  0x0005 )
  795. #define DV_HALFDUPLEX                   MAKE_HRESULT( 0, _FACDPV,  0x000A )
  796. #define DV_PENDING                        MAKE_HRESULT( 0, _FACDPV,  0x0010 )
  797.  
  798. #define DVERR_BUFFERTOOSMALL            MAKE_DVHRESULT(  0x001E )
  799. #define DVERR_EXCEPTION                 MAKE_DVHRESULT(  0x004A )
  800. #define DVERR_GENERIC                   E_FAIL
  801. #define DVERR_INVALIDFLAGS              MAKE_DVHRESULT( 0x0078 )
  802. #define DVERR_INVALIDOBJECT             MAKE_DVHRESULT( 0x0082 )
  803. #define DVERR_INVALIDPARAM              E_INVALIDARG
  804. #define DVERR_INVALIDPLAYER             MAKE_DVHRESULT( 0x0087 )
  805. #define DVERR_INVALIDGROUP              MAKE_DVHRESULT( 0x0091 )
  806. #define DVERR_INVALIDHANDLE             MAKE_DVHRESULT( 0x0096 )
  807. #define DVERR_OUTOFMEMORY               E_OUTOFMEMORY
  808. #define DVERR_PENDING                   DV_PENDING
  809. #define DVERR_NOTSUPPORTED              E_NOTIMPL
  810. #define DVERR_NOINTERFACE               E_NOINTERFACE
  811. #define DVERR_SESSIONLOST               MAKE_DVHRESULT( 0x012C )
  812. #define DVERR_NOVOICESESSION            MAKE_DVHRESULT( 0x012E )
  813. #define DVERR_CONNECTIONLOST            MAKE_DVHRESULT( 0x0168 )
  814. #define DVERR_NOTINITIALIZED            MAKE_DVHRESULT( 0x0169 )
  815. #define DVERR_CONNECTED                 MAKE_DVHRESULT( 0x016A )
  816. #define DVERR_NOTCONNECTED              MAKE_DVHRESULT( 0x016B )
  817. #define DVERR_CONNECTABORTING           MAKE_DVHRESULT( 0x016E )
  818. #define DVERR_NOTALLOWED                MAKE_DVHRESULT( 0x016F )
  819. #define DVERR_INVALIDTARGET             MAKE_DVHRESULT( 0x0170 )
  820. #define DVERR_TRANSPORTNOTHOST          MAKE_DVHRESULT( 0x0171 )
  821. #define DVERR_COMPRESSIONNOTSUPPORTED   MAKE_DVHRESULT( 0x0172 )
  822. #define DVERR_ALREADYPENDING            MAKE_DVHRESULT( 0x0173 )
  823. #define DVERR_SOUNDINITFAILURE          MAKE_DVHRESULT( 0x0174 )
  824. #define DVERR_TIMEOUT                   MAKE_DVHRESULT( 0x0175 )
  825. #define DVERR_CONNECTABORTED            MAKE_DVHRESULT( 0x0176 )
  826. #define DVERR_NO3DSOUND                 MAKE_DVHRESULT( 0x0177 )
  827. #define DVERR_ALREADYBUFFERED            MAKE_DVHRESULT( 0x0178 )
  828. #define DVERR_NOTBUFFERED               MAKE_DVHRESULT( 0x0179 )
  829. #define DVERR_HOSTING                   MAKE_DVHRESULT( 0x017A )
  830. #define DVERR_NOTHOSTING                MAKE_DVHRESULT( 0x017B )
  831. #define DVERR_INVALIDDEVICE             MAKE_DVHRESULT( 0x017C )
  832. #define DVERR_RECORDSYSTEMERROR         MAKE_DVHRESULT( 0x017D )
  833. #define DVERR_PLAYBACKSYSTEMERROR       MAKE_DVHRESULT( 0x017E )
  834. #define DVERR_SENDERROR                 MAKE_DVHRESULT( 0x017F )
  835. #define DVERR_USERCANCEL                MAKE_DVHRESULT( 0x0180 )
  836. #define DVERR_RUNSETUP                  MAKE_DVHRESULT( 0x0183 )
  837. #define DVERR_INCOMPATIBLEVERSION       MAKE_DVHRESULT( 0x0184 )
  838. #define DVERR_INITIALIZED               MAKE_DVHRESULT( 0x0187 )
  839. #define DVERR_INVALIDPOINTER            E_POINTER
  840. #define DVERR_NOTRANSPORT               MAKE_DVHRESULT( 0x0188 )
  841. #define DVERR_NOCALLBACK                MAKE_DVHRESULT( 0x0189 )
  842. #define DVERR_TRANSPORTNOTINIT          MAKE_DVHRESULT( 0x018A )
  843. #define DVERR_TRANSPORTNOSESSION        MAKE_DVHRESULT( 0x018B )
  844. #define DVERR_TRANSPORTNOPLAYER         MAKE_DVHRESULT( 0x018C )
  845. #define DVERR_USERBACK                  MAKE_DVHRESULT( 0x018D )
  846. #define DVERR_NORECVOLAVAILABLE         MAKE_DVHRESULT( 0x018E )
  847. #define DVERR_INVALIDBUFFER                MAKE_DVHRESULT( 0x018F )
  848. #define DVERR_LOCKEDBUFFER                MAKE_DVHRESULT( 0x0190 )
  849.  
  850. #ifdef __cplusplus
  851. }
  852. #endif
  853.  
  854. #endif
  855.  
  856.  
  857.